import { mock } from 'mockjs'


const data = mock({
  "list|10": [{
    'title': '@ctitle',
    'datetime': '@datetime',
    'id': '@id',
    'isDone': false
  }]
})


mock('/api/list', () => {
  return {
    code: 200,
    data: data.list
  }
})